package ma.view.gui.parameterPanels;

import ma.view.gui.CenterTabbedPane.EBenchmarkTab;
import net.miginfocom.swing.MigLayout;

/**
 * The {@code ProcessParameterPanel} shows all input parameter panels
 * that depend on the process. These parameter's only occur once per
 * process. 
 * @author Oliver Eckstein
 *
 */
public abstract class ProcessParameterPanel
    extends InputPanel {
    
    private static final long serialVersionUID = 1L;    

    /**
     * To create a new instance of {@code ParameterPanelsFrame}.
     * @param parameters map that contains the information about the
     * parameter's panels to be created
     */
    public ProcessParameterPanel(
            String logoPath,
            String manuMethodName) {        
        super(logoPath, manuMethodName);
        this.putClientProperty("ident", EBenchmarkTab.PROCESS_PARAMETERS);
    }
    
    @Override
    /*
     * (non-Javadoc)
     * @see ma.view.gui.ParameterPanelsPanel#createPanel()
     */
    protected void createPanel() {            
        this.setLayout(new MigLayout());
        parametersPanel.setLayout(new MigLayout("wrap 4"));
        this.add(parametersPanel);              
        this.add(createImageLabel(logoPath), "wrap");              
        this.setName("Prozessparameter");
    }
}
